import 'package:flutter/cupertino.dart';

class ScreenRECT {
  double width;
  double height;

  ScreenRECT({
    required this.width,
    required this.height,
  });
}

class Utils {

  static ScreenRECT getCurrentPageRECT(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    return ScreenRECT(width: size.width, height: size.height);
  }

  static String trimAll(String e) {
    return e.replaceAll(RegExp(r"\s+\b|\b\s"), "");
  }
}